<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="/resource/js/jquery-3.2.1.js"></script>
</head>
<body>
	<form action="list" method="post" id="fm">
		<input type="hidden" name="pageNum" id="pageNum" value="${info.pageNum }">
		单据编号<input type="text" name="id" value="${claim.id }">
		报销人<input type="text" name="name" value="${claim.name }">
		所属部门<input type="text" name="dept" value="${claim.dept }"><br>
		报销日期<input type="text" name="date" value="${claim.date }">至<input type="text" name="enddate" value="${claim.enddate }">
		费用金额<input type="text" name="fee" value="${claim.fee }">至<input type="text" name="endfee" value="${claim.endfee }">
		<input type="submit" value="查询">
	</form>
	<a href="update?id=''">添加</a>
	<table>
		<tr>
			<td>全选</td>
			<td>单据编号</td>
			<td>报销日期</td>
			<td>报销人</td>
			<td>所属部门</td>
			<td>费用发生期</td>
			<td>费用总额</td>
			<td>附件</td>
			<td>操作</td>
		</tr>
		<c:forEach items="${info.list }" var="li">
			<tr>
				<td><input type="checkbox" id="che" onclick="qx(this)"> </td>
				<td>${li.id }</td>
				<td><fmt:formatDate value="${li.date }" pattern="yyyy-MM-dd"/></td>
				<td>${li.name }</td>
				<td>${li.dept }</td>
				<td><fmt:formatDate value="${li.feeDate }" pattern="yyyy-MM-dd"/> </td>
				<td>${li.fee }</td>
				<td>${li.appedix }</td>
				<td><a href="update?id=${li.id }">修改</a></td>
			</tr>
		</c:forEach>
	</table>
	<jsp:include page="/WEB-INF/view/page.jsp"></jsp:include>
	<script type="text/javascript">
		function goPage(pageNum){
			$("#pageNum").val(pageNum);
			$("#fm").submit();
		}
	</script>
</body>
</html>